import requests
def get_headers():
    resp_login = requests.post(url="http://ihrm2-test.itheima.net/api/sys/login",
                               json={"mobile": "13800000002",
                                     "password": "123456"})
    token = "Bearer " + resp_login.json().get("data")
    headers = {"Authorization":token}
    return headers